#{extends 'mainFMPA.html' /} #{set title:'Liste des FMPAs à valider' /}
#{if isFMPA}
<div class="post">
	<div class="post">
		<h2 class="post-title">Liste des FMPAs</h2>
		<br>
		#{form @validationMasse()}
		<table cellpadding="0" cellspacing="0" border="0" class="display"
			id="liste">
			<thead>
				<tr>
					<th>CIS</th>
					<th>Date</th>
					<th>Dur&eacute;e</th>
					<th>Th&eacute;matique</th>
					<th>Theme</th>
					<th>Nombre de participants</th>
					<th>&Eacute;tat</th>
					#{if agent_responsable || chef_CIS || admin}
					<th></th>
					<th></th>
					#{/if}
				</tr>
			</thead>

			<tbody>
				#{list items:fmpas, as:'fmpa' }
				<tr>
					<td>${fmpa.cis}</td>

					<td>${fmpa.date.format('dd MMMM yyyy', 'fr')}</td>

					<td>${fmpa.duree.duree}</td>

					<td>${fmpa.thematique}</td>

					<td>${fmpa.sousThematique}</td>

					<td>${fmpa.getEffectif()}</td>

					<td>${fmpa.etat}</td>
					#{if agent_responsable || chef_CIS || admin}	
					<td><a href="@{FMPAs.detailFMPA(fmpa.id)}">D&eacute;tails</a></td>

					<td>Valider<input type="radio" name="validation_${fmpa.id}" id="validation_${fmpa.id}" value="valider" onmousedown="this.__chk = this.checked" onclick="if (this.__chk) this.checked = false" checked="true"/>
                        <br />Refuser<input type="radio" name="validation_${fmpa.id}" id="validation_${fmpa.id}" value="annuler" onmousedown="this.__chk = this.checked" onclick="if (this.__chk) this.checked = false" />
					</td>
					#{/if}
				</tr>
				#{/list}
			</tbody>
		</table>
		</br>
		#{if agent_responsable || chef_CIS || admin}
		<input type="submit" value="Enregistrer" />
		#{/if}
		#{/form}
	</div>
</div>
#{/if} #{else}
<div class="empty">pas de demande de validation.</div>
#{/else}
